﻿using StudentCouncil.DAL.DAO;
using StudentCouncil.Model;
using StudentCouncil.Model.Models;
using StudentCouncil.Model.Parameter;
using System;
using System.Collections.Generic;
using System.Text;

namespace StudentCouncil.BLL.Mgr
{
   public class StudentUnionMgr
    {
        public static Pager<StudentUnion> GetListPage(StudentUnionParameter parameter)
        {
            return StudentUnionDAO.GetListByPage(parameter);
        }
        public static bool AddStudent_union(StudentUnion entity)
        {
            return StudentUnionDAO.AddStudent_union(entity);
        }
        public static bool DeleteById(int id)
        {
            return StudentUnionDAO.DeleteById(id);
        }
        public static StudentUnion GetStudentById(int id)
        {
            return StudentUnionDAO.GetStudentById(id);
        }

        public static bool CheckStudentById(int id)
        {
            StudentUnion result = StudentUnionDAO.GetStudentById(id);
            return result != null;
        }
        public static bool Update(StudentUnion entity)
        {
            return StudentUnionDAO.Update(entity);
        }
        public static List<StudentUnion> GetList()
        {
            return StudentUnionDAO.GetList();
        }
    }
}
